﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Level_Light_DianXian2 : MonoBehaviour
{
    public GameLevelItem gameLevelItem;
    public ButtonPress leftBtnPress;
    public ButtonPress rightBtnPress;

    public GameObject light1;
    public GameObject light2;
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }

    public void JudeResult()
    {
        if (leftBtnPress.IsDown && rightBtnPress.IsDown)
        {
            gameLevelItem.TriggerResult(true);
            light1.SetActive(false);
            light2.SetActive(true);
        }
    }
}
